package travibot.ui.gui.forms;
import org.eclipse.jface.resource.ImageRegistry;
import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Tree;

import travibot.ui.gui.forms.viewers.BuildingsTreeViewer;

/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class Buildings extends org.eclipse.swt.widgets.Composite implements CompositeForm {
    private Tree buildingsTree;
    private TreeViewer viewer = null;

    public Buildings(org.eclipse.swt.widgets.Composite parent, int style) {
        super(parent, style);
        initGUI();
    }

    private void initGUI() {
        try {
            this.setLayout(new GridLayout());
            {
                GridData buildingsTreeLData = new GridData();
                buildingsTreeLData.verticalAlignment = GridData.FILL;
                buildingsTreeLData.grabExcessVerticalSpace = true;
                buildingsTreeLData.widthHint = 150;
                buildingsTree = new Tree(this, SWT.BORDER);
                buildingsTree.setLayoutData(buildingsTreeLData);
                viewer = new BuildingsTreeViewer(buildingsTree);
            }
            this.layout();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public void setInput(Object object) {

       viewer.setInput(object);
        
    }

    public void setMainForm(MainForm mainform) {

        // TODO Auto-generated method stub
        
    }

    public void setImageRegistry(ImageRegistry imageRegistry) {

        // TODO Auto-generated method stub
        
    }

}
